home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4239 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  44 lines

  1. Path: munnari.OZ.AU!metro!metro!news
  2. From: philip tomlinson <tomli_p@arch.su.edu.au>
  3. Newsgroups: comp.lang.c++
  4. Subject: Forward Declaration of a Particular Instance of Templated Class
  5. Date: Mon, 29 Jan 1996 17:13:41 +1100
  6. Organization: Information Services, The University of Sydney, NSW, Australia
  7. Distribution: inet
  8. Message-ID: <310C6595.7158@arch.su.edu.au>
  9. NNTP-Posting-Host: ossian.arch.su.edu.au
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b4 (X11; I; SunOS 5.4 sun4m)
  14.  
  15. Hello,
  16.  
  17. I'm using GCC on a Sparc and need a forward declaration of a particular
  18. instance of a templated class.  How do I do this?
  19.  
  20. ************
  21.  
  22. /*Forward Declaration of the templated class*/
  23. template <class Type> class ACLASS;
  24.  
  25.  
  26. /*Forward declaration of ACLASS<int>*/
  27. ???What goes here?????
  28.  
  29. /*The Class Declaration*/
  30. template <class Type>
  31. class  ACLASS {
  32.  
  33. ACLASS<int>* some_function():
  34. };
  35.  
  36. *************
  37.  
  38. Thanks for your help.
  39. -- 
  40. Philip Tomlinson
  41. Masters Student In Design Computing
  42. University of Sydney
  43. tomli_p@arch.su.edu.au
  44.